package cn.ccsu.cecs.bonus.service.impl;

import cn.ccsu.cecs.bonus.entity.BonusApplyImage;
import cn.ccsu.cecs.bonus.mapper.BonusApplyImageMapper;
import cn.ccsu.cecs.bonus.service.IBonusApplyImageService;
import cn.ccsu.cecs.common.utils.PageUtils;
import cn.ccsu.cecs.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 申请材料表 服务实现类
 * </p>
 *
 * @author ccsu-cecs
 * @since 2022-03-05
 */
@Service
public class BonusApplyImageServiceImpl extends ServiceImpl<BonusApplyImageMapper, BonusApplyImage> implements IBonusApplyImageService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BonusApplyImage> page = this.page(
                new Query<BonusApplyImage>().getPage(params),
                new QueryWrapper<BonusApplyImage>()
        );

        return new PageUtils(page);
    }
}
